#include "Person.h"
#include <cstdlib>
#include <iostream>

Person::Person(const string& name, int year, bool isMale)
	:name(name),
	year(year),
	isMale(isMale)
{

}

Athlete::Athlete(const string& name, int year, bool isMale)
	:Person(name, year, isMale)
{
	srand(time(0));
}

void Athlete::run()
{
	cout << "my name is " << this->getName()
		<< " my speed is " << rand() % 9 + 1 
		<< "km/h" << endl;
}
